<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            display: inline-block;  /*转换为行内块元素*/
            height: 100px;
            width: 100px;
            background-color: orange;
        }
        span{
            /*转换为行内块元素*/
            display: inline-block;  
            /*转换为块元素*/
            /* display: block;   */
            height: 100px;
            width: 150px;
            background-color: blue;
        }
    </style>
</head>
<body>
    <div>
        块元素
    </div>
    <div>
        另一个块元素
    </div>
    <p>
        <span>
            行内元素
        </span>
        <span>
            另一个行内元素
        </span>
    </p>
    
</body>
</html>